Headline


faqs


setup

pip install seaborn
import seaborn as sns
sns.__version__
#  '0.10.1'

plot types

Generic example

# x and y are lists
sns.plottype(x=df['xvar'], 
             y=df['yvar'], 
             color='green',
             marker='+')

# x and y are columns in dataframe
sns.plottype(x='xvar', y='yvar', data=df)

boxplot

sns.boxplot(x, y)

distplot

sns.distplot(x)

E.g. overlay two density plots

ax1 = sns.distplot(x1, hist=False, col='r', label='x1')
sns.distplot(x2, hist=False, col='b', label='x2', ax=ax1)

jointplot

# TODO

regplot

sns.regplot(x, y)
plt.ylim(0,)

residplot

sns.residplot(x, y)

swarmplot

# TODO

misc

FacetGrid

# TODO

styles

sns.set_style('darkgrid')